package com.repair.service.LineStation;




import java.util.List;

import com.repair.dao.LineStation.ILineStationDao;
import com.repair.domain.LineStation;
import com.repair.factory.DaoFactory;




public class LineStationService {
	private ILineStationDao dao = (ILineStationDao)DaoFactory.getInstance().getDao("LineStationDao");
	
	
	public void save(LineStation obj){
		this.dao.saveLineStation(obj);
	}
	public  List<LineStation> list(){
		return this.dao.getAllLineStation();
	}
	public void delete(LineStation obj){
		this.dao.deleteLineStation(obj);
	}
	public List getLineName(){
		return this.dao.getLineName();
	}
	public List getStationname(String linenumber){
		return this.dao.getStationName(linenumber);
	}
}
